package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.stores.EquipmentLedger;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author GE-LV5
 * @create 2023/2/17 14:16
 * ========设备台账==============
 */
public interface EquipmentLedgerMapper  extends BaseMapper<EquipmentLedger> {


    /**
     * 查询设备台账
     * @param dept
     * @return
     */
    public List<EquipmentLedger> selectEquipmentLedgerList(@Param("vo") EquipmentLedger dept);


    /**
     * 删除设备台账
     * @param id
     * @return
     */
    public int deleteEquipmentLedgerById(@Param("id") Long id);


    /**
     * 新增设备台账
     *
     * @param equipment 设备台账
     * @return 结果
     */
    public int insertEquipmentLedger(EquipmentLedger equipment);

    /**
     * 修改设备台账
     *
     * @param equipment 设备台账
     * @return 结果
     */
    public int updateEquipmentLedger(EquipmentLedger equipment);

    /**
     * 根据id查询设备台账
     * @param id
     * @return
     */
    EquipmentLedger equipmentLedgerById(@Param("id") Long id);
    /**
     * 批量删除设备台账
     *
     * @param
     * @return 结果
     */
    public int deleteSetStepByIds(@Param("ids") List<Long> ids);

    public   EquipmentLedger selectEquipmentLedgerCode(String equipmentCode);

    List<EquipmentLedger> selectEquipmentList(EquipmentLedger equipmentLedger);
}
